package cn.zzm.controller;

import cn.zzm.support.activeMQ.JmsQueueRespProduser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: study
 * @description:
 * @author: 周昭名
 * @create: 2019-04-10 20:43
 **/
@RestController
public class MsgController {

    @Autowired
    JmsQueueRespProduser jmsQueueRespProduser;

    @RequestMapping("send")
    public String sendMsg(){
        System.out.println("发送消息...");
        jmsQueueRespProduser.send("responseQueueTest","你好，我是testRespQueue测试");
        System.out.println("发送完成");
        return "发送成功";
    }
}

